#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>
#include <QSqlDatabase>

namespace Ui {
class loginDialog;
}

class loginDialog : public QDialog
{
    Q_OBJECT

public:
    explicit loginDialog(QWidget *parent = 0);
    ~loginDialog();

private slots:
    void on_pushButtonLogin_clicked();
    void on_pushButtonReg_clicked();

private:
    void initDb();
    void closeDb();
    void createTable();
    void insertTestData();

    Ui::loginDialog *ui;
    QSqlDatabase db;
};

#endif // LOGINDIALOG_H
